# -*- coding: utf-8 -*-
# @Time    :2022/1/12 22:30
# @AUTHOR  :MORAN
# @Email   :moran@maqu.com
# @File    :urls.py
# @Software:PyCharm
from django.urls import path
from rest_framework.routers import DefaultRouter
from .views import ClassesViewSet, ClassesStudentViewSet

urlpatterns = [
    path('classes/<pk>/students/', ClassesStudentViewSet.as_view({'post': 'add_member'})),
]
router = DefaultRouter()  # 创建路由器
router.register('classes', ClassesViewSet)
urlpatterns += router.urls
